﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.Entities
{
    public class TargetInfo
    {
        Random r = new Random();
        public int Altitude;
        public int Speed;
        public int Distance;
        public int Position;
        string [] headingArray = { "N","NE","NW","S","SE","SW","E","W" }; // Direction in which target is traveling
        public string Heading;

        //Method to create a randomly generated number within certain parameters
        public void RandomNum() 
        {                    
           Altitude = (r.Next(1,1161601)/ 5280); // Calculation to convert feet to miles
           Speed = r.Next(1,10001);
           Distance = (r.Next(1,1161601)/ 5280);
           Position = r.Next(0,361);
           int headingIndex = r.Next(0,8);
           Heading = headingArray[headingIndex];
        }

    }
       
}
